package com.hrt.test.serial;

import java.io.IOException;

import com.btcode.common.MyLog;
import com.btcode.common.PropertiesUnit;
import com.hrt.datasender.datacollect.serial.protocol.SerialDataProtocolLoader;

public class ProtocolLoader {

    public static void main(String[] args)
            throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {

        PropertiesUnit.setPropertiesPath("E:/workspace/DataSenderV2/DataSenderV2/resource/");
        String logPath = PropertiesUnit.getValue("logPath");
        MyLog.getInstance().setRootPath(logPath);

        SerialDataProtocolLoader.getInstance().getExistProtocol();
    }

}
